package mtm.db;

import java.awt.Color;
import java.io.Serializable;

import mtm.date.MtmDate;

public class AbstractJob implements Serializable {

	protected int id;
	protected String jobName;
	protected MtmDate startTime;
	protected MtmDate endTime;
	protected String description;
	protected String icon;
	protected int color = Color.green.getRGB();
	
	
	/**
	 * Constructor
	 */
	public AbstractJob() {
		
	}
	
	
	/**
	 * Constructor
	 */
	public AbstractJob(String jobName, MtmDate startTime, MtmDate endTime, 
			String description, String icon, int color) {
		this.jobName = jobName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.description = description;
		this.icon = icon;
		this.color = color;
	}
	
	
	/**
	 * Constructor
	 */
	public AbstractJob(String jobName, MtmDate startTime, MtmDate endTime, 
			String description) {
		this.jobName = jobName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.description = description;
	}

	
	/**
	 * Setter and getter methods
	 */
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public MtmDate getStartTime() {
		return startTime;
	}

	public void setStartTime(MtmDate startTime) {
		this.startTime = startTime;
	}

	public MtmDate getEndTime() {
		return endTime;
	}

	public void setEndTime(MtmDate endTime) {
		this.endTime = endTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

}
